package com.example.jetpackpractice.startup

import android.content.Context
import android.util.Log
import androidx.startup.Initializer

class ExampleLoggerInitializer: Initializer<ExampleLogger> {
    override fun create(context: Context): ExampleLogger {
        Log.d("MyTest", "ExampleLoggerInitializer 被初始化了")
        return ExampleLogger()
    }

    override fun dependencies(): MutableList<Class<out Initializer<*>>> {
        // Defines a dependency on WorkManagerInitializer so it can be
        // initialized after WorkManager is initialized.
        Log.d("MyTest", "ExampleLoggerInitializer 的依赖项被调用了")
        return arrayListOf(BaseLoggerInitializer::class.java)
    }
}

class ExampleLogger{
    var age = 78
}